package com.ithei.多线程第二天.阻塞队列;

import java.util.concurrent.ArrayBlockingQueue;

public class Deo1 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> ab=new ArrayBlockingQueue<>(1);
        ab.put("1");
        String take = ab.take();
        System.out.println(take);
        System.out.println(ab.take());
        System.out.println("结束..........");
    }
}
